class AddNumPlayersToMap < ActiveRecord::Migration
  def self.up
    add_column :maps, :num_players, :integer

    map = Map.find_by_name("Summoner's Rift")
    map.num_players = 5
    map.save

    map = Map.find_by_name("Twisted Treeline")
    map.num_players = 3
    map.save

  end

  def self.down
    remove_column :maps, :num_players
  end
end
